package com.wnxy.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 预约表
 * </p>
 *
 * @author All
 * @since 2023-11-29
 */
@Data
  @TableName("t_reservation")
@ApiModel(value = "Reservation对象", description = "预约表")
public class Reservation implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("预约信息id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("充电桩id")
      private Integer chargingId;

      @ApiModelProperty("预约开始时间")
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      private Date startTime;

      @ApiModelProperty("预约时长")
      private String endTime;

      @ApiModelProperty("客户id")
      private Integer customerId;

      @ApiModelProperty("预约状态")
      private Integer state;

  @JsonFormat(shape = JsonFormat.Shape.STRING)
  @ApiModelProperty("预约单编号")
      private Long ordernum;

      @ApiModelProperty("订单的描述")
      private String mark;

      @ApiModelProperty("逻辑删除字段")
      private Integer flag;


}
